import axios from 'axios'
export default {
  FETCH_ITEMS (context, params = {}) {
    /*
      context 就是 store这是实例
    */
    axios.post('/conner/shop/goods/list/v2', params).then(res => {
      if (res.data.code === 0) {
        context.commit('INIT_ITEMS', res.data.data.result)
      }
    })
  }
}
